package com.heima.wemedia.controller.v1;

import com.heima.model.common.dtos.ResponseResult;
import com.heima.wemedia.service.WmChannelService;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author dongcy
 * @date 2024/11/19 10:09
 * @description WmchannelController
 */
@RestController
@RequestMapping("/api/v1/channel")
@RequiredArgsConstructor
public class WmchannelController {

    private final WmChannelService wmChannelService;

    /**
     * 频道下拉框
     * @return
     */
    @GetMapping("/channels")
    public ResponseResult findAll(){
        return wmChannelService.findAll();
    }

}
